package com.zlq.cn.mapper.movie;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zlq.cn.dto.param.MoviePageParam;
import com.zlq.cn.entity.Movie;
import com.zlq.cn.entity.MovieCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 影片 Mapper 接口
 * </p>
 *
 * @author zhoucl
 * @since 2022-03-19
 */
public interface MovieMapper extends BaseMapper<Movie> {
    /**
     * 查询没有评论的影片
     *
     * @return 有评论的影片
     */
    List<Movie> selectNotComment();

    List<Movie> selectMovie(@Param("list") List<MovieCategory> categories);

    Page<Movie> selectMoviePage(@Param("pag") Page<Movie> pag, @Param("param") MoviePageParam param);
}
